import os
import sys

HOME_PATH = os.environ['HOME']
PARENT_PATH = os.path.dirname(os.path.abspath(__file__))
DEPLOY_ROOT_PATH = os.environ.get("AUTO_DEPLOY_DIR") \
                   or os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

if not os.path.exists(DEPLOY_ROOT_PATH):
    sys.exit(1)
else:
    print("DEPLOY_ROOT_PATH: {}. HOME_PATH: {}. PARENT_PATH: {}".format(DEPLOY_ROOT_PATH, HOME_PATH, PARENT_PATH))
